package com.wyg.epmysql.common.page;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

/**
 * Description: 分页request,基于mybatis-plus
 *
 * @author WangYongGan
 * @since 2022/5/20 12:41
 */
@Data
public class PageReq<T, E> {

    private int current;
    private int size;
    private T param;
    private String orderBy;

    public Page<E> toPage() {
        return new Page<>(current, size);
    }
}
